Skip to content

Fix failure to apply bugzilla.create_bug action - #6758

Merged
ayoubdiourin7 merged 2 commits into
mozilla:masterfrom
ayoubdiourin7:bugzilla-create-bug-drop-is-markdown
Sep 3, 2026
Merged

Fix failure to apply bugzilla.create_bug action#6758
ayoubdiourin7 merged 2 commits into
mozilla:masterfrom
ayoubdiourin7:bugzilla-create-bug-drop-is-markdown

Conversation

@ayoubdiourin7

Copy link
Copy Markdown
Contributor

create_bug records is_markdown: true, but BMO's POST /bug endpoint rejects that parameter with a 400 Bad Request, causing every recorded bug filing to fail when applied.

Changes

  • create_bug no longer records is_markdown in the action body.

  • CreateBugHandler strips is_markdown before sending the POST request, allowing already-recorded actions to succeed on retry.

    • This is temporary and can be removed once no pending action rows contain the flag.

Fixes #6752

@ayoubdiourin7
ayoubdiourin7 requested a review from a team as a code owner September 2, 2026 14:30
@ayoubdiourin7

Copy link
Copy Markdown
Contributor Author

Verified: filing a bug without the is_markdown field succeeds :
https://bugzilla-dev.allizom.org/show_bug.cgi?id=1855543

Comment thread libs/hackbot-runtime/hackbot_runtime/actions/bugzilla.py
Comment thread libs/hackbot-runtime/hackbot_runtime/actions/handlers/bugzilla_handler.py Outdated
@ayoubdiourin7
ayoubdiourin7 merged commit d2129c2 into mozilla:master Sep 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to apply bugzilla.create_bug action

2 participants